home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
how to learn assembler.adf
/
CH5
/
5_5A.asm
< prev
next >
Wrap
Assembly Source File
|
1988-02-25
|
642b
|
35 lines
;** Sound generation using Hardware-Register ** (5.5A)
ctlw = $dff096
c0thi = $dff0a0
c0tlo = c0thi+2
c0tl = c0thi+4
c0per = c0thi+6
c0vol = c0thi+8
;!!! when AMIGA 2000 . > 500KB !!!
; org $40000
; load $40000
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
run:
move.l #table,c0thi ;Table beginning
move #8,c0tl ;Table lenght
move #400,c0per ;read in rate
move #40,c0vol ;Loudness level
move #$8201,ctlw
jmp run ;rts
still:
move #1,ctlw
jmp ende ;rts
table:
dc.b -40,-70,-90,-100,-90,-70,-40,0
dc.b 40,70,90,100,90,70,40,0
ende:
end